package com.controleur.listener.impl;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import com.vue.CarteApercuVue;
import com.vue.Fenetre;


/**
 * @author 
 *
 */
public class CarteApercuListener implements ActionListener 
{
	/**
	 * 
	 */
	public Fenetre fenetre;
	/**
	 * 
	 */
	public int idCarte;

	/**
	 * @param f
	 * @param idCarte
	 */
	public CarteApercuListener(Fenetre f,int idCarte)
	{
		this.idCarte=idCarte;
		this.fenetre=f;
	}

	@Override
	public void actionPerformed(ActionEvent e) 
	{
		this.fenetre.setPanneau(new CarteApercuVue(fenetre,idCarte));
	}
}